Optimal. Leaf size=137 \[ \frac {a^3 \log (\sin (c+d x))}{d}+\frac {3 a^3 \sin (c+d x)}{d}+\frac {a^3 \sin ^2(c+d x)}{2 d}-\frac {5 a^3 \sin ^3(c+d x)}{3 d}-\frac {5 a^3 \sin ^4(c+d x)}{4 d}+\frac {a^3 \sin ^5(c+d x)}{5 d}+\frac {a^3 \sin ^6(c+d x)}{2 d}+\frac {a^3 \sin ^7(c+d x)}{7 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 137, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {2915, 12, 90}
\begin {gather*} \frac {a^3 \sin ^7(c+d x)}{7 d}+\frac {a^3 \sin ^6(c+d x)}{2 d}+\frac {a^3 \sin ^5(c+d x)}{5 d}-\frac {5 a^3 \sin ^4(c+d x)}{4 d}-\frac {5 a^3 \sin ^3(c+d x)}{3 d}+\frac {a^3 \sin ^2(c+d x)}{2 d}+\frac {3 a^3 \sin (c+d x)}{d}+\frac {a^3 \log (\sin (c+d x))}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 90
Rule 2915
Rubi steps
\begin {align*} \int \cos ^4(c+d x) \cot (c+d x) (a+a \sin (c+d x))^3 \, dx &=\frac {\text {Subst}\left (\int \frac {a (a-x)^2 (a+x)^5}{x} \, dx,x,a \sin (c+d x)\right )}{a^5 d}\\ &=\frac {\text {Subst}\left (\int \frac {(a-x)^2 (a+x)^5}{x} \, dx,x,a \sin (c+d x)\right )}{a^4 d}\\ &=\frac {\text {Subst}\left (\int \left (3 a^6+\frac {a^7}{x}+a^5 x-5 a^4 x^2-5 a^3 x^3+a^2 x^4+3 a x^5+x^6\right ) \, dx,x,a \sin (c+d x)\right )}{a^4 d}\\ &=\frac {a^3 \log (\sin (c+d x))}{d}+\frac {3 a^3 \sin (c+d x)}{d}+\frac {a^3 \sin ^2(c+d x)}{2 d}-\frac {5 a^3 \sin ^3(c+d x)}{3 d}-\frac {5 a^3 \sin ^4(c+d x)}{4 d}+\frac {a^3 \sin ^5(c+d x)}{5 d}+\frac {a^3 \sin ^6(c+d x)}{2 d}+\frac {a^3 \sin ^7(c+d x)}{7 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.08, size = 88, normalized size = 0.64 \begin {gather*} \frac {a^3 \left (420 \log (\sin (c+d x))+1260 \sin (c+d x)+210 \sin ^2(c+d x)-700 \sin ^3(c+d x)-525 \sin ^4(c+d x)+84 \sin ^5(c+d x)+210 \sin ^6(c+d x)+60 \sin ^7(c+d x)\right )}{420 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.22, size = 131, normalized size = 0.96
method | result | size |
derivativedivides | \(\frac {a^{3} \left (\frac {\left (\cos ^{4}\left (d x +c \right )\right )}{4}+\frac {\left (\cos ^{2}\left (d x +c \right )\right )}{2}+\ln \left (\sin \left (d x +c \right )\right )\right )+\frac {3 a^{3} \left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{5}-\frac {a^{3} \left (\cos ^{6}\left (d x +c \right )\right )}{2}+a^{3} \left (-\frac {\sin \left (d x +c \right ) \left (\cos ^{6}\left (d x +c \right )\right )}{7}+\frac {\left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{35}\right )}{d}\) | \(131\) |
default | \(\frac {a^{3} \left (\frac {\left (\cos ^{4}\left (d x +c \right )\right )}{4}+\frac {\left (\cos ^{2}\left (d x +c \right )\right )}{2}+\ln \left (\sin \left (d x +c \right )\right )\right )+\frac {3 a^{3} \left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{5}-\frac {a^{3} \left (\cos ^{6}\left (d x +c \right )\right )}{2}+a^{3} \left (-\frac {\sin \left (d x +c \right ) \left (\cos ^{6}\left (d x +c \right )\right )}{7}+\frac {\left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{35}\right )}{d}\) | \(131\) |
risch | \(\frac {9 a^{3} {\mathrm e}^{2 i \left (d x +c \right )}}{128 d}-i a^{3} x +\frac {9 a^{3} {\mathrm e}^{-2 i \left (d x +c \right )}}{128 d}-\frac {2 i a^{3} c}{d}+\frac {a^{3} \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )}{d}+\frac {125 a^{3} \sin \left (d x +c \right )}{64 d}-\frac {a^{3} \sin \left (7 d x +7 c \right )}{448 d}-\frac {a^{3} \cos \left (6 d x +6 c \right )}{64 d}+\frac {9 a^{3} \sin \left (5 d x +5 c \right )}{320 d}-\frac {a^{3} \cos \left (4 d x +4 c \right )}{16 d}+\frac {59 a^{3} \sin \left (3 d x +3 c \right )}{192 d}\) | \(171\) |
norman | \(\frac {\frac {2 a^{3} \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {2 a^{3} \left (\tan ^{12}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {6 a^{3} \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{d}+\frac {68 a^{3} \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d}+\frac {646 a^{3} \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{15 d}+\frac {2488 a^{3} \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{35 d}+\frac {646 a^{3} \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{15 d}+\frac {68 a^{3} \left (\tan ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d}+\frac {6 a^{3} \left (\tan ^{13}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}-\frac {8 a^{3} \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}-\frac {8 a^{3} \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}-\frac {10 a^{3} \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}-\frac {10 a^{3} \left (\tan ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{7}}+\frac {a^{3} \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}-\frac {a^{3} \ln \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}\) | \(303\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 107, normalized size = 0.78 \begin {gather*} \frac {60 \, a^{3} \sin \left (d x + c\right )^{7} + 210 \, a^{3} \sin \left (d x + c\right )^{6} + 84 \, a^{3} \sin \left (d x + c\right )^{5} - 525 \, a^{3} \sin \left (d x + c\right )^{4} - 700 \, a^{3} \sin \left (d x + c\right )^{3} + 210 \, a^{3} \sin \left (d x + c\right )^{2} + 420 \, a^{3} \log \left (\sin \left (d x + c\right )\right ) + 1260 \, a^{3} \sin \left (d x + c\right )}{420 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.40, size = 112, normalized size = 0.82 \begin {gather*} -\frac {210 \, a^{3} \cos \left (d x + c\right )^{6} - 105 \, a^{3} \cos \left (d x + c\right )^{4} - 210 \, a^{3} \cos \left (d x + c\right )^{2} - 420 \, a^{3} \log \left (\frac {1}{2} \, \sin \left (d x + c\right )\right ) + 4 \, {\left (15 \, a^{3} \cos \left (d x + c\right )^{6} - 66 \, a^{3} \cos \left (d x + c\right )^{4} - 88 \, a^{3} \cos \left (d x + c\right )^{2} - 176 \, a^{3}\right )} \sin \left (d x + c\right )}{420 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.50, size = 108, normalized size = 0.79 \begin {gather*} \frac {60 \, a^{3} \sin \left (d x + c\right )^{7} + 210 \, a^{3} \sin \left (d x + c\right )^{6} + 84 \, a^{3} \sin \left (d x + c\right )^{5} - 525 \, a^{3} \sin \left (d x + c\right )^{4} - 700 \, a^{3} \sin \left (d x + c\right )^{3} + 210 \, a^{3} \sin \left (d x + c\right )^{2} + 420 \, a^{3} \log \left ({\left | \sin \left (d x + c\right ) \right |}\right ) + 1260 \, a^{3} \sin \left (d x + c\right )}{420 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 8.99, size = 178, normalized size = 1.30 \begin {gather*} \frac {176\,a^3\,\sin \left (c+d\,x\right )}{105\,d}-\frac {a^3\,\ln \left (\frac {1}{{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}\right )}{d}+\frac {a^3\,\ln \left (\frac {\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}\right )}{d}+\frac {a^3\,{\cos \left (c+d\,x\right )}^2}{2\,d}+\frac {a^3\,{\cos \left (c+d\,x\right )}^4}{4\,d}-\frac {a^3\,{\cos \left (c+d\,x\right )}^6}{2\,d}+\frac {88\,a^3\,{\cos \left (c+d\,x\right )}^2\,\sin \left (c+d\,x\right )}{105\,d}+\frac {22\,a^3\,{\cos \left (c+d\,x\right )}^4\,\sin \left (c+d\,x\right )}{35\,d}-\frac {a^3\,{\cos \left (c+d\,x\right )}^6\,\sin \left (c+d\,x\right )}{7\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________